.class Lcom/bitauto/autoeasy/BaseListActivity$1;
.super Ljava/lang/Object;
.source "BaseListActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/bitauto/autoeasy/BaseListActivity;->DialogCity(Ljava/util/ArrayList;)Landroid/app/AlertDialog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/bitauto/autoeasy/BaseListActivity;

.field private final synthetic val$cityList:Ljava/util/ArrayList;


# direct methods
.method constructor <init>(Lcom/bitauto/autoeasy/BaseListActivity;Ljava/util/ArrayList;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/bitauto/autoeasy/BaseListActivity$1;->this$0:Lcom/bitauto/autoeasy/BaseListActivity;

    iput-object p2, p0, Lcom/bitauto/autoeasy/BaseListActivity$1;->val$cityList:Ljava/util/ArrayList;

    .line 119
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3
    .parameter "dialog"
    .parameter "item"

    .prologue
    .line 121
    iget-object v0, p0, Lcom/bitauto/autoeasy/BaseListActivity$1;->this$0:Lcom/bitauto/autoeasy/BaseListActivity;

    const-string v1, "autoeasy"

    const/4 v2, 0x2

    invoke-virtual {v0, v1, v2}, Lcom/bitauto/autoeasy/BaseListActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    const-string v2, "cityid"

    iget-object v0, p0, Lcom/bitauto/autoeasy/BaseListActivity$1;->val$cityList:Ljava/util/ArrayList;

    invoke-virtual {v0, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/bitauto/autoeasy/selectcar/Object/City;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/City;->getCityId()Ljava/lang/String;

    move-result-object v0

    invoke-interface {v1, v2, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 122
    const-string v1, "cityname"

    iget-object v2, p0, Lcom/bitauto/autoeasy/BaseListActivity$1;->val$cityList:Ljava/util/ArrayList;

    invoke-virtual {v2, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/bitauto/autoeasy/selectcar/Object/City;

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/Object/City;->getCityName()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 123
    return-void
.end method
